package com.example.demospring.controller;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/test")
@RestController
public class TestController{

    @GetMapping("/1")
    public String test1(){
        return "这是axios发送get请求从后端获取的数据";
    }

    @GetMapping("/2")
    public int test2(@RequestParam int a, @RequestParam int b){
        return a + b;
    }

}
